package com.example.mywike.home;

import com.example.mywike.utils.returnUtils.ReturnData;
import com.example.mywike.utils.returnUtils.ReturnUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiyanqiulvgui
 * @Date 2020/9/13 23:58
 * @Description 首页
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/api/home")
public class HomeController {


    @PostMapping("/home")
    @RequiresPermissions("all")
    public ReturnData home(){
        return ReturnUtils.success();
    }
}
